<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>提交结果</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f0f8ff;
      text-align: center;
      padding-top: 100px;
    }

    h1 {
      color: #333;
    }

    .info-box {
      margin-top: 30px;
      font-size: 1.2em;
      color: #444;
    }
  </style>
</head>
<body>

  <h1>🎉 提交成功！</h1>
  <div class="info-box" id="result">
    正在加载数据...
  </div>

  <script>
    // 获取 URL 参数
    function getQueryParam(key) {
      const params = new URLSearchParams(window.location.search);
      return params.get(key) || '未知';
    }

    const name = getQueryParam('name');
    const id = getQueryParam('id');

    // 显示到页面中
    document.getElementById('result').innerHTML = `
      <p><strong>姓名：</strong>${decodeURIComponent(name)}</p>
      <p><strong>学号：</strong>${decodeURIComponent(id)}</p>
    `;
  </script>

</body>
</html>
